<template>
  <view>
		<view class="tui-actionsheet"  :class="[show ? 'tui-actionsheet-show' : '']">
			<view class="regional-selection">
				<view class="specs">
				    <view class="specs-top">
				        <view style="font-size: 35rpx;font-weight: bold">配件详情</view>  
						<view class="flex cancel-button">
							<u-icon name="close-circle" color="#999999" size="22" @click="handleClickMask()"></u-icon>					
						</view>   
				    </view>						
					<view class="flex flex-direction ml-20 mt-20">						
						<bw-swiper :swiperList="goods_send.goods_image" style="width:100%" :cardSwiper="215" :swiperType="true" :autoplay="true"></bw-swiper>
					</view>
					
					<view class="flex flex-direction ml-20 mt-20">
						<text style="font-size: 36rpx;color: #0a0a0a; font-weight: bold">{{goods_send.goods_title}}</text>
						<view class="flex justify-between align-center text-center mt-30 mr-20" style="font-size: 28rpx;color: #0F151E;">
							<view class="flex">								
								<view class="flex align-center text-center">
									<text>租金：</text>
									<text style="font-weight: bold;font-size: 28rpx;color: #FF2A00;">¥ {{goods_send.goods_price}}</text>
								</view>					
								<view class="flex align-center text-center ml-20">
									<text>续租：</text>
									<text style="font-weight: bold;font-size: 28rpx;color: #FF2A00;">¥ {{goods_send.lease_price}}</text>
								</view>								
							</view>							
							<view class="flex">
								<text>押金：¥ {{goods_send.deposit_price}}</text>
							</view>							
						</view>						
					</view>	
														
				    <view class="flex justify-between" style="position: fixed;bottom: 60rpx;width: 94%; left: 20rpx; right: 20rpx; ">		
						<view class="submit-btn-left" @click="handleClickMask()">暂不选择</view>
						<view class="submit-btn-right"  @click="select_acces(goods_send.id)">确定</view>				    				
				    </view>	
				</view>			
			</view>
		</view>
		<!-- 遮罩层 -->
		<view  class="tui-actionsheet-mask"  :class="[show ? 'tui-mask-show' : '']"	  @tap="handleClickMask"></view>
  </view>
</template>
 
<script>
export default {
  // name: "tuiActionsheet",
  props: {
    //点击遮罩 是否可关闭
    maskClosable: {
      type: Boolean,
      default: true,
    },
    //显示操作菜单
    show: {
        type: Boolean,
        default: false,
       },
    },
	data(){
		return{
			shopInfo:{},
			goods_send:{}
		}
	},
	created() {
		this.shopInfo = uni.getStorageSync('shopInfo')
	},
    methods:  {
		handleClickMask() {
			 this.$emit("partsClose",{type:1});
		},   
		NgoodsSpec(event){
			this.goods_send=event
			console.log('event',event)
		},
		//选中
		select_acces(accesId){
			this.$emit("partsConfirm",{accesId});
		}
    },
};
</script>
 
<style scoped lang="less">
	
	.cancel-button{
		position: absolute;
		margin-top: 10rpx;
		right: 20rpx;
	}
	
.tui-actionsheet {
  width: 100%;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  visibility: hidden;
  transform: translate3d(0, 100%, 0);
  transform-origin: center;
  transition: all 0.3s ease-in-out;
  // background: #eaeaec;
  min-height: 100rpx;

}
 
.tui-actionsheet-show {
  transform: translate3d(0, 0, 0);
  visibility: visible;
}
.regional-selection {
    // text-align: center;
  height: 891rpx;
  background: #fff;
  border-radius: 20rpx 20rpx 0rpx 0rpx;
}
.tui-actionsheet-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9996;
  transition: all 0.3s ease-in-out;
  opacity: 0;
  visibility: hidden;
  
}
 
.tui-mask-show {
  opacity: 1;
  visibility: visible;
}


/* component/specs/index.wxss */

.specs-top-desc{
  display: flex;
  flex-direction: column;
  font-size: 25rpx;
  margin-left: 35rpx;
  color: gray;
  margin-top: 15rpx;
  
}

.specs-top-title{
  display: flex;
  flex-direction: row;
  justify-content: left;
  font-size: 25rpx;
  margin-left: 35rpx;  
  margin-top: 25rpx;
  
}

.localtion{
  display: flex;
  flex-direction: row;
  color: gray;
}

.specs-top{
  display: flex;
  flex-direction: row;
  font-size: 23rpx;
  justify-content: center;
  align-items: center;
  padding-bottom: 10rpx;
  // border-bottom: 1rpx solid rgb(240, 235, 235);
  padding-top: 20rpx;
 

 
}


</style>